<?php

//Root application
define('APPLICATION_DIR'						, realpath(dirname(__FILE__).'/..'));
//define('APPLICATION_DIR_UPLOAD'					, str_replace("front","",APPLICATION_DIR) . 'images/');
//define('APPLICATION_DIR_DOWNLOAD'					, str_replace("front","",APPLICATION_DIR) . 'download/');

define('APPLICATION_URL'						, "http://".$_SERVER['HTTP_HOST'] . "/mba/");
//define('APPLICATION_URL_UPLOAD'			, "http://".$_SERVER['HTTP_HOST'] . "/hatien/images/");
//define('APPLICATION_URL_DOWNLOAD'			, "http://".$_SERVER['HTTP_HOST'] . "/hatien/download/");

//Smarty config
define('TEMPLATE_DIR'							, APPLICATION_DIR.'/application/view/templates');
define('TEMPLATE_C_DIR'							, APPLICATION_DIR.'/application/view/templates_pub');

//Set default Controller and default Action
define('DEFAULT_CONTROLLER'					, 'home');
define('DEFAULT_CONTROLLER_ACTION'				, 'index');

define("NUMBER_DECDEXDEC", 999999999);

//Pagination config
define('PAGING_DEFAULT_ITEM_PER_PAGE','10');
define('PAGING_DEFAULT_PAGE_DELTA','10');
define('PAGING_CSS_LINK_CLASS','paging');
define('PAGING_PREV','&laquo; ');
define('PAGING_NEXT','&raquo;');
define('PAGING_SEPARATOR','&nbsp;');
define('PAGING_CSS_CURRENT_PAGE','paging_current');

/*
Session config
	Two possible values:
		- DATABASE : Database storage
		- SERVER   : Server storage
	Note: By default, the SERVER is chosen
*/
define('SESSION_HANDLER_TYPE'					, 'SERVER');
//define('SESSION_HANDLER_TYPE'					, 'DATABASE');

//AJAX Indicator icon
define('AJAX_INDICATOR_ICON'					, APPLICATION_URL.'public/images/loading.gif');

// Lang support config
$arrLanguage = array('vi' => 'English');

//DB config

$database_dsn['database']     			= "mysql://solvaym_solvay:hjKL67*(@localhost/solvaym_solvay";
$database_dsn['database_solvay']     	= "mysql://solvaym_solvay:hjKL67*(@localhost/solvaym_solvay";
?>
